﻿using System.Collections.Generic;
using System.Web.Mvc;

namespace Peak.Web.Controllers.Models
{
  public class BacklogModel 
  {
    public StoryFilterModel Filter { get; set; }
    public IList<StoryModel> Stories{ get; set;}
        
    public IEnumerable<SelectListItem> GetPageSizeValues()
    {
      List<SelectListItem> list = new List<SelectListItem>();
      list.Add(new SelectListItem() { Selected = Filter.PageSize == 10, Text = "10", Value = "10" });
      list.Add(new SelectListItem() { Selected = Filter.PageSize == 20, Text = "20", Value = "20" });
      list.Add(new SelectListItem() { Selected = Filter.PageSize == 50, Text = "50", Value = "50" });
      list.Add(new SelectListItem() { Selected = Filter.PageSize == 100, Text = "100", Value = "100" });
      return list;
    }
  }
}